package com.tc.shiro.repository;

import com.tc.shiro.entity.PortalRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PortalRoleRepository {

	int deleteByPrimaryKey(Long id);

	PortalRole selectByPrimaryKey(Long id);

	int updateByPrimaryKey(PortalRole portalRole);

	int updateByPrimaryKeySelective(PortalRole portalRole);

	int insert(PortalRole portalRole);

	int insertSelective(PortalRole portalRole);

	int selectCount(PortalRole portalRole);

	List<PortalRole> selectPage(@Param("portalRole") PortalRole portalRole, @Param("pageable") Pageable pageable);

	List<PortalRole> selectRoleManage(@Param("portalRole") PortalRole portalRole, @Param("pageable") Pageable pageable);

	PortalRole selectByRoleMercNo(PortalRole portalRole);

	int updateByRoleMercNo(PortalRole portalRole);

	List<PortalRole> selectByRoleMercNoList(PortalRole portalRole);

	int deleteByRoleMercNo(PortalRole portalRole);
}